package org.jeecg.modules.wlhy.order.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.wlhy.order.entity.HyOrder;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class HyOrderPriceVO extends HyOrder {
    private static final long serialVersionUID = 1L;


	@Dict(dictTable = "hy_order", dicText = "order_num", dicCode = "id")
    @ApiModelProperty(value = "货源id")
    private String orderId;


	@Dict(dictTable = "hy_driver", dicText = "driver_name", dicCode = "id")
    @ApiModelProperty(value = "司机id")
    private String driverId;

    @Dict(dictTable = "hy_vehicle", dicText = "vehicle_number", dicCode = "id")
    @ApiModelProperty(value = "车辆")
    private String vehicleId;

    @ApiModelProperty(value = "运单id")
    private String shippingId;
	/**竞争价格*/
	@Excel(name = "竞争价格", width = 15)
    @ApiModelProperty(value = "竞争价格")
    private BigDecimal price;
	/**状态(0竞价,1采用)*/
	@Excel(name = "状态(0竞价1已采用2已接单3过期)", width = 15)
    @Dict(dicCode = "price_st")
    @ApiModelProperty(value = "状态(0竞价1已采用2已接单3过期)")
    private String priceSt;

	@Excel(name = "采用时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "采用时间")
    private Date byTime;

    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "接单时间")
    private Date jdTime;


}
